package com.ebupt.migu.music.api.controller;

import com.ebupt.migu.music.api.entity.SendMessageEntity;
import com.ebupt.migu.music.api.service.ServiceErrorReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: liuyangyang@cd.ebupt.com
 * @create: 2020-11-23 09:43
 */
@Slf4j
@RestController
@RequestMapping("/ser")
public class ServiceErrorReportController {

    @Autowired
    private ServiceErrorReportService serviceErrorReportService;

    /**
     * 发送短信
     */
    @PostMapping("/send_message")
    public void send_message(@RequestBody SendMessageEntity sendMessageEntity) {
        serviceErrorReportService.send_message(sendMessageEntity);
    }
}
